package org.simple.spring.ssm.service;

import org.simple.spring.ssm.entity.Category;
import org.simple.spring.ssm.mapper.CategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 项目名称：spring-leaning
 * 类名称：CategoryService
 * 类描述：CategoryService
 * 创建时间：2018/8/7
 *
 * @author jiangjunjie   (E-mail:1620657419@qq.com)
 * @version v1.0
 */
@Service
public class CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    public List<Category> list() {
        return categoryMapper.list();
    }

}
